﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class ClubMember:Student
    {
        int clubid;
        string qq;
        string phone;
        string pic;
        string hobby;
        string memo;

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public string Qq
        {
            get
            {
                return qq;
            }

            set
            {
                qq = value;
            }
        }

        public string Phone
        {
            get
            {
                return phone;
            }

            set
            {
                phone = value;
            }
        }

        public string Pic
        {
            get
            {
                return pic;
            }

            set
            {
                pic = value;
            }
        }

        public string Hobby
        {
            get
            {
                return hobby;
            }

            set
            {
                hobby = value;
            }
        }

        public string Memo
        {
            get
            {
                return memo;
            }

            set
            {
                memo = value;
            }
        }

        public string Clubname { get; set; }
        public string Departmentname { get; set; }

        public ClubMember(string sid,string name, string sex, DateTime birthday,string grade,int departmentname, int professionid,int clubid, string qq, string phone, string pic, string hobby, string memo):base(sid,name,sex,birthday,grade, departmentname, professionid)
        {
            this.Studentid = sid;
            this.Name = name;
            this.Sex = sex;
            this.Birthday = birthday;
            this.Grade = grade;
            this.Departmentid = departmentname;
            this.Professionid = professionid;
            this.Clubid = clubid;
            this.Qq = qq;
            this.Phone = phone;
            this.Pic = pic;
            this.Hobby = hobby;
            this.Memo = memo;
        }

        public ClubMember()
        {
        }

        public new void ShowInfo() {

            base.ShowInfo();
            Console.WriteLine("社团编号：" + this.Clubid);
            Console.WriteLine("qq：" + this.Qq);
            Console.WriteLine("手机号码：" + this.Phone);
            Console.WriteLine("备注：" + this.Memo);
            Console.WriteLine("兴趣爱好：" + this.Hobby);
            
        }
        public String GetInfo()
        {
            String info ="学号："+this.Studentid + "\n";
            info += "姓名：" + this.Name + "\n";
            info += "性别：" + this.Sex + "\n";
            info += "出生日期：" + this.Birthday.ToShortDateString() + "\n";
            info += "年级：" + this.Grade + "\n";
            info += "系部代码：" + this.Departmentid + "\n";
            info += "专业代码：" + this.Professionid + "\n";
            info += "社团号：" + this.Clubid + "\n";
            info += "QQ号：" + this.Qq + "\n";
            info += "手机号：" + this.Phone + "\n";
            info += "兴趣爱好：" + this.Hobby + "\n";
            info += "备注：" + this.Memo + "\n";
            return info;
        }
        //public override void ShowInfo()
        //{

        //    base.ShowInfo();
        //    Console.WriteLine("社团编号：" + this.Clubid);
        //    Console.WriteLine("qq：" + this.Qq);
        //    Console.WriteLine("手机号码：" + this.Phone);
        //    Console.WriteLine("备注：" + this.Memo);
        //    Console.WriteLine("兴趣爱好：" + this.Hobby);

        //}重写覆盖

    }
}
